//
// Created by 21577 on 2025/3/3.
//
#include<stdio.h>
#include<math.h>
int main(){
    int num;
    while(scanf("%d",&num) !=EOF){
        if(num>1000){
            printf("输入错误！");
        }
        else{
            num = sqrt(num);
            printf("%d\n",num);
        }
    }
    return 0;
}